package enum_;

import org.junit.Test;

public class SeasonEnumTest {
    @Test
    public void test(){
        SeasonEnum seasonEnum = SeasonEnum.AUTUMN;
        String s = seasonEnum.toString(); // 返回枚举类的名称
        SeasonEnum[] values = SeasonEnum.values();// 返回所有对象数组
        SeasonEnum spring = SeasonEnum.valueOf("SPRING");  //返回对象
    }
}
